import { Module } from '@nestjs/common';
import { ChatService } from './chat.service';
import { MongooseModule } from '@nestjs/mongoose';
import { MessageSchema } from './chat.schema';

@Module({
  imports: [
    // 注册聊天数据表
    MongooseModule.forFeature([{ name: 'message', schema: MessageSchema }]),
  ],
  providers: [ChatService],
})
export class ChatModule {}
